package com.yanqu.road.entity.activity.stronghold;

import com.alibaba.fastjson.JSON;
import com.yanqu.road.entity.player.UserBaseInfo;
import com.yanqu.road.entity.player.UserPatrons;

import java.util.List;

public class StrongholdPatronsEvent extends StrongholdBaseEvent{
    private UserPatrons patrons;
    private int blood;
    private UserBaseInfo userBaseInfo;
    private int rewardPoints;
    private List<Integer> boxList;
    private String winReward;
    private String loseReward;
    private int losePoints;
    public UserPatrons getPatrons() {
        return patrons;
    }

    public void setPatrons(UserPatrons patrons) {
        this.patrons = patrons;
    }

    public int getBlood() {
        return blood;
    }

    public void setBlood(int blood) {
        this.blood = blood;
    }

    public UserBaseInfo getUserBaseInfo() {
        return userBaseInfo;
    }

    public void setUserBaseInfo(UserBaseInfo userBaseInfo) {
        this.userBaseInfo = userBaseInfo;
    }

    public int getRewardPoints() {
        return rewardPoints;
    }

    public void setRewardPoints(int rewardPoints) {
        this.rewardPoints = rewardPoints;
    }

    public List<Integer> getBoxList() {
        return boxList;
    }

    public void setBoxList(List<Integer> boxList) {
        this.boxList = boxList;
    }

    public String getWinReward() {
        return winReward;
    }

    public void setWinReward(String winReward) {
        this.winReward = winReward;
    }

    public String getLoseReward() {
        return loseReward;
    }

    public void setLoseReward(String loseReward) {
        this.loseReward = loseReward;
    }

    public int getLosePoints() {
        return losePoints;
    }

    public void setLosePoints(int losePoints) {
        this.losePoints = losePoints;
    }

    public static void main(String[] args) {
        String s = "{\"blood\":100,\"boxList\":[],\"patrons\":{\"ability\":1001143495,\"addAbility\":0,\"battleAddition\":1000,\"breakLv\":13,\"cookExp\":0,\"currentBlood\":1001143495,\"dirty\":true,\"insertOption\":false,\"level\":700,\"oreWarBattleAddition\":1000,\"oreWarEarnSpeed\":0,\"patronsId\":102322,\"qualification\":121,\"resetTime\":0,\"skillList\":[{\"dirty\":true,\"insertOption\":false,\"patronsId\":102322,\"skillId\":10010,\"skillLv\":1,\"skinSkillLevel\":0,\"totalSkillLevel\":1,\"type\":1,\"updateOption\":true,\"userId\":999006780000001},{\"dirty\":true,\"insertOption\":false,\"patronsId\":102322,\"skillId\":10031,\"skillLv\":1,\"skinSkillLevel\":0,\"totalSkillLevel\":1,\"type\":1,\"updateOption\":true,\"userId\":999006780000001},{\"dirty\":true,\"insertOption\":false,\"patronsId\":102322,\"skillId\":10050,\"skillLv\":1,\"skinSkillLevel\":0,\"totalSkillLevel\":1,\"type\":1,\"updateOption\":true,\"userId\":999006780000001},{\"dirty\":true,\"insertOption\":false,\"patronsId\":102322,\"skillId\":10100,\"skillLv\":1,\"skinSkillLevel\":0,\"totalSkillLevel\":1,\"type\":1,\"updateOption\":true,\"userId\":999006780000001},{\"dirty\":true,\"insertOption\":false,\"patronsId\":102322,\"skillId\":20001,\"skillLv\":1,\"skinSkillLevel\":0,\"totalSkillLevel\":1,\"type\":2,\"updateOption\":true,\"userId\":999006780000001}],\"skinId\":0,\"stageLv\":0,\"totalBlood\":1001143495,\"tradeWarAddEarnSpeed\":0,\"unionTradeSend\":false,\"updateOption\":true,\"userId\":999006780000001},\"rewardPoints\":0,\"type\":2,\"userBaseInfo\":{\"city\":\"台北\",\"continent\":\"亞洲\",\"country\":\"東亞\",\"decoration\":\"106005@#$106500@#$0@#$106005@#$106200\",\"earnSpeed\":59742627382,\"lastLoginTime\":1606451502,\"nickName\":\"馬箏\",\"province\":\"台灣\",\"registerTime\":1606129935,\"serverId\":99900678,\"sex\":1,\"titleId\":54,\"unionAliasId\":167800001,\"unionName\":\"pavel001\",\"unionUid\":\"99900678-dd77c55b-b965-484e-ae35-4fdd131a4755\",\"userAliasId\":16780000001,\"vipExp\":0,\"world\":\"世界\"}}";
        StrongholdPatronsEvent event = JSON.parseObject(s, StrongholdPatronsEvent.class);
        System.out.println(event.getType());
        event.setType(2);
        String s1 = JSON.toJSONString(event);
        System.out.println(s1);
    }

}
